package ua.simplecoding.kievhome.converter;

import ua.simplecoding.kievhome.domain.AppartmentDetails;
import ua.simplecoding.kievhome.vo.AppartmentDetailsVO;

/**
 * User: dmytro.fedotov
 * Date: 03.07.11
 */
public class AppartmentDetailsVOConverter extends AbstractVOConverter<AppartmentDetails, AppartmentDetailsVO> {

    @Override
    public AppartmentDetailsVO convert(AppartmentDetails appartmentDetails) {
        AppartmentDetailsVO detailsVO = new AppartmentDetailsVO();
        detailsVO.setPk(appartmentDetails.getPk());

        detailsVO.setKitchenSquare(appartmentDetails.getKitchenSquare());
        detailsVO.setLivingSquare(appartmentDetails.getLivingSquare());
        detailsVO.setRoomCount(appartmentDetails.getRoomCount());
        detailsVO.setStageNumber(appartmentDetails.getStageNumber());
        detailsVO.setTotalSquare(appartmentDetails.getTotalSquare());
        detailsVO.setTotalStageCount(appartmentDetails.getTotalStageCount());
        return detailsVO;
    }
}
